package com.sleepcamel.resteasyConfigurator.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;

import com.sleepcamel.rest.domain.Mapping;
import com.sleepcamel.resteasyConfigurator.view.detail.MappingDetailView;
import com.sleepcamel.resteasyConfigurator.view.sourcecode.SourceCodeView;

public class MappingDetailSourceCodeComposite extends DetailSourceCodeComposite<Mapping>{

	public MappingDetailSourceCodeComposite(Composite parent, int style) {
		super(parent, style);
	}

	public void setModelData(Mapping data) {
		MappingDetailView mappingDetailView = new MappingDetailView(this, SWT.NONE);
		mappingDetailView.setModelData(data);
		SourceCodeView sourceCodeView = new SourceCodeView(this, SWT.NONE);
		sourceCodeView.setData(data);
		setViews(mappingDetailView, sourceCodeView);
	}
}
